home *** CD-ROM | disk | FTP | other *** search
/ Hottest 6 / Hottest 6 (1996)(PDSoft)[!].iso / software / videoutils / a-g / fixpj12 / fixobj.doc < prev    next >
Text File  |  1978-11-24  |  2KB  |  55 lines

  1. FixObj 1.2 :  Fixes Pixel3DPro generated Wavefront files
  2.  
  3.    This program was made because I'm using Wavefront at school, and
  4. Imagine at home.  I've gotten a few objects converted back and forth
  5. by a friend on IRC, and when going to Wavefront, they have this knack
  6. of crashing it spectacularly.  Makes ya wonder if they ever really
  7. tested their Wavefront saver. :)  Anyway, doing a hex dump, I noticed that
  8. P3dPro files have a carriage return character $0d, and Wavefront Model
  9. apparently chokes on it.
  10.    Another problem the files have is that Wavefront draws the objects
  11. inside out.  This doesn't matter for symmetrically swept objects, but
  12. many non-symmetrical objects (such as the keyboard I've been desperately
  13. trying to get converted), this is unacceptable.  The cause of the problem
  14. is Imagine having Y coords grow bigger, the further they get away from
  15. you, whereas the Wavefront Z (same as Y in Imagine) coords grow smaller
  16. as they move away.
  17.  
  18. IMAGINE (and Pixel 3D Pro, apparently)             Wavefront
  19.  
  20.            Y                       Z
  21.           /|\  + numbers                  /|\  - numbers
  22.            |                       |
  23.            +---> X                       +--->X
  24.            |                       |
  25.           \|/  - numbers                  \|/  + numbers
  26.  
  27. Notes:
  28. ------
  29.  USAGE:   FixObj <wavefront file>
  30.  The output file is saved on top of the original
  31.  
  32.    Right now, the program requires just enough memory to have the file
  33. in memory twice.  Since I made it out of personal need and I have plenty
  34. of memory, that's ok for me.  It's kinda necessary to have it like that
  35. because of the way I programmed the backtracking it needs to do to find
  36. the Z signs. There may be a better way, but I'm still learning E right now.
  37.  
  38.  
  39. Bug Fixes:
  40. ----------
  41. 20-Mar-93
  42.   I finally figured out why the objects are reversed, after a few days of
  43. almost tearing my hair out.
  44. 16-Mar-93
  45.   Ok, like a damn-fool-idiot, I posted a version that I had in my C: just
  46. before I got it working completely right.  So, the original FixObj doesn't
  47. work!  (I'm noticing this a couple weeks after I originally uploaded it- the
  48. next time I needed it.)  So, here's the fixed, (should-be) working version,
  49. and I added a few lines to check and make sure you haven't already run
  50. FixObj on the object.
  51.  
  52. Dan    "Danimal" on IRC
  53. djm2@ra.msstate.edu
  54.  
  55.